package com.h5lib.nchuoffice.app.dao;

import java.io.Serializable;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 简单的缓存系统
 * @author farmer
 *
 */
@DatabaseTable(tableName="t_cache")
public class Cache implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3667517694629672649L;
	/**
	 * 主键
	 */
	@DatabaseField(dataType=DataType.STRING,id=true)
	private String key;
	/**
	 * 值
	 */
	@DatabaseField(dataType=DataType.STRING)
	private String value;
	/**
	 * 缓存的对象类型
	 */
	@DatabaseField(dataType=DataType.STRING)
	private String clazz;
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	
}
